package com.zkx.bean;

import java.io.Serializable;

/**
 * 序列化
 * @author zkx
 */
public class User implements Serializable {
    public User() {
    }

    //账号Id
    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public User(Integer id, String password, double money) {
        this.id = id;
        this.password = password;
        this.money = money;
    }

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", userName='" + userName + '\'' +
                '}';
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public User(Integer id, String password, double money, String userName) {
        this.id = id;
        this.password = password;
        this.money = money;
        this.userName = userName;
    }

    //密码
    private String password;
    //金额
    private double money;

    //姓名
    private String userName;
}
